package com.huan.dubbo.service.spi;

import com.huan.dubbo.service.OrderPay;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.Activate;

/**
 * OrderPay 接口的扩展类
 */
@Activate
public class CashPayOrder implements OrderPay {
    @Override
    public String pay() {
        System.out.println("现金支付");
        return "现金支付";
    }

    @Override
    public String payAdaptive(URL url) {
        System.out.println("现金支付");
        return "现金支付";
    }
}
